body,html{
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
.box{
    width: 100vw;
    height: 100vh;
    background: url(../images/IndexImage/01.jpg) no-repeat;
    background-size: cover;
    position: absolute;
    transform: scale(1.2);
    z-index: -1;
    transition: background 0.5s;
}
.content{
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    filter:  drop-shadow(0px 20px 10px rgba(0, 0, 0, 0.5));
}
.login{
    width: 500px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 1rem;
    padding: 1rem;
}
.form-type-text{
    display: inline-block;
    font-weight: 100;
    color: white;
    letter-spacing: 0.1rem;
    margin: 0.5rem 2rem;
}
.form-type-text span{
    margin: 0.5rem 0.5rem;
}
#form-type{
    display: none;
}
#form-type ~ label{
    width: 3rem;
    height: 1rem;
    background: #ecf0f1;
    border-radius: 0.5rem;
    position: relative;
    cursor: pointer;
}
#form-type ~ label::before{
    content: '';
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
    background: #55efc4;
    border-radius: 0.75rem;
    border: 0.2rem solid #00b894;
    top: -25%;
    left: -25%;
    transition: 0.5s;
}
#form-type:checked ~label::before{
    background-color: #FFC312;
    border: 0.2rem solid #F79F1F;
    left: 75%;
}
.login-form{
    width: 100%;
    height: 100%;
    margin: 1rem 0;
    position: relative;
    perspective: 800px;
}
.form-front{
    width: 100%;
    height: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 4rem;
    background-color: #1abc9cbd; /* 正面背景色 */
    border-radius: 1rem;
    position: absolute;
    top: 0;
    backface-visibility: hidden;
    transition: 0.5s;
}
.form-back{
    width: 100%;
    height: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 4rem;
    background-color: #FFC312bd; /* 背面背景色 */
    border-radius: 1rem;
    backface-visibility: hidden;
    transform: rotateY(-180deg);
    transition: 0.5s;
}
#form-type:checked ~ .login-form>.form-front{
    transform: rotateY(180deg);
}
#form-type:checked ~ .login-form>.form-back{
    transform: rotateY(0deg);
}
.form-front h1,.form-back h1{
    color: white;
}
.form-input{
    width: 100%;
    width: 100%;
    padding: 1rem 1.5rem;
    margin: 0.5rem 1rem;
    background-color: white;
    border-radius: 0.4rem;
    position: relative;
    border: 3px solid transparent;
}
.form-input input{
    width: 75%;
    padding: 0rem 1rem;
    outline: none;
    border: none;
    background-color: white;
    font-size: 0.8rem;
}
.form-front .form-input span {
    color: #1abc9c;
}
.form-back .form-input span{
    color: #F79F1F;
}
.form-submit{
    width: 100%;
    
}
.form-submit input{
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: white;
    outline: none;
    border: none;
    color: black;
    transition: 0.3s;
}
.form-front .form-submit input:hover{
    background-color: #16a085;
    color: white;
}
.form-back .form-submit input:hover{
    background-color: #F79F1F;
    color: white;
}
.prompt{
    padding: 1rem 0rem;
    line-height: 1rem;
    color: white;
}
.form-error{
    border: 3px solid #e74c3c;
}
.error-info{
    position: absolute;
    white-space: nowrap;
    left: 106%;
    top: 20%;
    padding: 0.5rem 0.5rem;
    background-color: white;
    border-radius: 0.5rem;
    font-size: 0.1rem;
    display: inline-block;
}
.error-info::before{
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 8px;
    left: -15px;
    border-right: 15px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

@media screen and (max-width:1600px){
    html{
        font-size: 14px;
    }
    .login{
        width: 450px;
    }
    .form-back,.form-front{
        height: 380px;
    }
}
@media screen and (max-width:960px) {
    .login{
        width: 100%;
        
    }
    .form-input{
        width: 100%;
    }
}